import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/home',
      meta: {
        isShow:true
      }
    },
    {
      path: '/home',
      name: 'home',
      component: () => import('../views/Home/HomeView.vue'),
      meta: {
        isShow:true
      }
    },
    {
      path: '/about',
      name: 'about',
      component: () => import('../views/About/AboutView.vue'),
      meta: {
        isShow:true
      }
    },
    {
      path: '/video',
      name: 'video',
      component: () => import('../views/Video/VideoView.vue'),
      meta: {
        isShow:true
      }
    },
    {
      path:'/community',
      name:'community',
      component: () => import('../views/Community/CommunityView.vue'),
      meta: {
        isShow:true
      }
    },
    {
      path:'/NavBar',
      name:'NavBar',
      component: () => import('../components/NavBar/NavBar.vue')
    },
    {
      path:'/AudioPlayer',
      name:'AudioPlayer',
      component: () => import('../components/Audio/AudioPlayer.vue')
    },
    {
      path:'/AudioPlay',
      name:'AudioPlay',
      component: () => import('../views/AudioPlay/AudioPlay.vue'),
      meta: {
        isShow:false
      }
    },
    {
      path:'/AudioPlay2',
      name:'AudioPlay2',
      component: () => import('../views/AudioPlay/AudioPlay2.vue'),
      meta: {
        isShow:false
      }
    }
  ],
})

export default router
